package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import java.util.ArrayList;
import entities.ExtractedExam;

public class LecturerReportFilePack extends MessagePack {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ArrayList<Integer> grades;
	private ExtractedExam exam;

	/**
	 * constructor
	 * 
	 * @param exam
	 */
	public LecturerReportFilePack(ExtractedExam exam) {
		this.op = OpType.LecturerReportFile;
		this.setExam(exam);
	}

	/**
	 * 
	 * @return the grades
	 */
	public ArrayList<Integer> getGrades() {
		return grades;
	}

	/**
	 * 
	 * @param sqlgrades
	 *            the list of grades
	 */
	public void setGrades(ArrayList<Integer> sqlgrades) {
		grades = new ArrayList<Integer>();
		grades.addAll(sqlgrades);
	}

	/**
	 * @return the exam
	 */
	public ExtractedExam getExam() {
		return exam;
	}

	/**
	 * @param exam
	 *            the exam to set
	 */
	public void setExam(ExtractedExam exam) {
		this.exam = exam;
	}

}
